<template>
  <div class="q-pa-md">
    <div class="q-gutter-y-md column" style="max-width: 300px">
      <t-file color="purple-12" v-model="model" label="Label">
        <template v-slot:prepend>
          <t-icon name="attach_file" />
        </template>
      </t-file>

      <t-file color="teal" filled v-model="model" label="Label">
        <template v-slot:prepend>
          <t-icon name="cloud_upload" />
        </template>
      </t-file>

      <t-file
        color="grey-3"
        outlined
        label-color="orange"
        v-model="model"
        label="Label"
      >
        <template v-slot:append>
          <t-icon name="attachment" color="orange" />
        </template>
      </t-file>

      <t-file
        color="lime-11"
        bg-color="green"
        filled
        v-model="model"
        label="Label"
      >
        <template v-slot:prepend>
          <t-icon name="attachment" />
        </template>
      </t-file>

      <t-file color="teal" outlined v-model="model" label="Label">
        <template v-slot:append>
          <t-avatar>
            <img src="https://cdn.quasar.dev/logo-v2/svg/logo.svg" />
          </t-avatar>
        </template>
      </t-file>

      <t-file
        clearable
        color="orange"
        standout
        bottom-slots
        v-model="model"
        label="Label"
        counter
      >
        <template v-slot:prepend>
          <t-icon name="attach_file" />
        </template>
        <template v-slot:append>
          <t-icon name="favorite" />
        </template>

        <template v-slot:hint> Field hint </template>
      </t-file>
    </div>
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        model: ref(null),
      };
    },
  };
</script>
